home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000324_news@columbia.edu_Wed Jul 12 14:06:40 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA20582
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 12 Jul 1995 10:07:00 -0400
  3. Received: by apakabar.cc.columbia.edu id AA14838
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 12 Jul 1995 10:06:55 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: Read function
  9. Date: 12 Jul 1995 14:06:40 GMT
  10. Organization: Columbia University
  11. Lines: 34
  12. Message-Id: <3u0ktg$ef5@apakabar.cc.columbia.edu>
  13. References: <3u0des$e0r@tst.hk.super.net>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <3u0des$e0r@tst.hk.super.net>,
  18. John Carroll <jcarroll@hk.super.net> wrote:
  19. > Is it possible to use a Kermit script (under MSDOS) to read an 
  20. > incoming value and assign it to a variable, or even write it to a file.
  21. >
  22. Yes.  MS-DOS Kermit 3.14 has a set of string manipulation functions that,
  23. with some ingenuity, might be used for this: \findex(), \fsubstring(), etc.
  24.  
  25. > I've been using a script to login to my Internet Provider, and request SLIP
  26. > access. The Provider then gives me my ip_address etc. But it would be nice
  27. > if I could write these values to a local configuration file for use with
  28. > FTP, etc.
  29. >
  30. All you need is the manual, "Using MS-DOS Kermit", which shows you how to
  31. write script programs, supplemented by the KERMIT.UPD file, which explains
  32. the new string functions and related variables.  You'll also find an
  33. explanation of the same string functions in "Using C-Kermit".
  34.  
  35. Hints: After you tell the terminal server to enter SLIP mode, enter a loop
  36. in which you INPUT a line at a time:
  37.  
  38.   :LOOP
  39.   clear input
  40.   input 5 \10
  41.  
  42. At this point, you have a line of output in the \v(input) variable.  Now you
  43. are ready to parse the IP address or other needed information.  If you find
  44. it, exit the loop, otherwise go back and repeat.  Programming 101.
  45.  
  46. > PS, does the latest MSDOS Kermit have FTP support?
  47. >    
  48. No.
  49.  
  50. - Frank